<?php

namespace app\controller\front;

use app\BaseController;
use app\model\Notice as NoticeModel;

class Notice extends BaseController
{

    public function getNotices()
    {
        $params = request()->param();
        $where = [];
        $res = NoticeModel::where($where)->order('id desc')->paginate(
            3, false, [
            'page' => 1
        ]);

        return $this->successMessage('查询成功',$res);
    }


}